[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
imag() Return Imaginary Part of a Complex Number
#include <complex.h>
double imag(z);
complex z; Complex number
This function returns the imaginary part of a complex number.
Returns: The imaginary part of a complex number.
-------------------------------- Example ---------------------------------
#include <iostream.h>
#include <complex.h>
int main(void)
double x = 5.3, y = 9.1;
complex z = complex(x,y);
cout << "Imaginary part = " << imag(z);
return 0;
See Also:
complex()
conj()
real()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson